//
//  LXNearByTableViewCell.m
//  跑跑快销
//
//  Created by linxian on 14-5-6.
//  Copyright (c) 2014年 ylife. All rights reserved.
//

#import "LXNearByTableViewCell.h"

@implementation LXNearByTableViewCell

@synthesize nameLabel, addressLabel, industryImgView, starImgView, meterLabel;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        [self drawCell];
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

-(void)drawCell
{
    // 行业图标
    industryImgView = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, 35, 35)];
    industryImgView.backgroundColor = [UIColor blackColor];
    [self addSubview:industryImgView];
    
    // 客户名
    nameLabel = [[UILabel alloc] init];
    nameLabel.textColor = [UIColor blackColor];
    nameLabel.backgroundColor = [UIColor grayColor];
    nameLabel.font = [UIFont systemFontOfSize:16];
    [self addSubview:nameLabel];
    
    // 五角星图标
    starImgView = [[UIImageView alloc] init];
    starImgView.backgroundColor = [UIColor blackColor];
    [nameLabel addSubview:starImgView];
    
    // 地址
    addressLabel = [[UILabel alloc] init];
    addressLabel.textColor = [UIColor blackColor];
    addressLabel.backgroundColor = [UIColor grayColor];
    addressLabel.font = [UIFont systemFontOfSize:13];
    [self addSubview:addressLabel];
    
    // 相距距离
    meterLabel = [[UILabel alloc] initWithFrame:CGRectMake(270, 10, 28, 28)];
    meterLabel.textColor = [UIColor blackColor];
    meterLabel.backgroundColor = [UIColor grayColor];
    meterLabel.font = [UIFont systemFontOfSize:13];
    [self addSubview:meterLabel];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
